<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../../subPages/css.jsp"%>
<link href="css/product.css" rel="stylesheet" type="text/css" />
<body class="small-width">
	<%@include file="../../subPages/top.jsp"%>
	<%@include file="../../subPages/title.jsp"%>
	<%@include file="../../subPages/nav.jsp"%>
	<div class="container">
		<div class="row">
			<div class="bg-white col-sm-12 shadow min-h200 mt10 p10">
				<div class="cart-title border">
					<div class="col-xs-4 col-sm-7 p0">
						<input type="checkbox" id="select_all"
							onclick="cartSelectAll('select_all','p_id')" /> 全选
					</div>
					<div class="col-xs-2 col-sm-1 p0">单价</div>
					<div class="col-xs-2 col-sm-1 p0">总价</div>
					<div class="col-xs-2 col-sm-2 tc p0">数量</div>
					<div class="col-xs-2 col-sm-1 tr p0">
						<a href="javascript:void(0);" title="清空购物车"
							onclick="deleteAllFromCart(event)"><span
							class="glyphicon glyphicon-trash"></span>&nbsp;清空</a>
					</div>
					<div class="cb"></div>
				</div>
				<form id="form_jiesuan" action="confirmOrder" method="post" onsubmit="return submitConfirmOrder();">
					<span id="cart_table"> 
						<s:iterator value="#request.carts.keySet()" id="key">
							<s:iterator value="#request.carts.get(#key)">
								<%@include file="./cartDetail.jsp"%>
							</s:iterator>
						</s:iterator>
					</span>
				
				<s:if test="#request.carts.size()==0">
					<div class="center-block mt20 w100">没有商品!</div>
				</s:if>
				<button type="submit" class="btn btn-danger fr">结算</button>
				<div class="fr tr h40 lh40 mr20">
					已选商品<span class="F40 fb" id="total_num">0</span>件
					&nbsp;&nbsp;&nbsp;&nbsp;合计(不含运费)：<span class="F40 fb">￥</span><span
						class="F40 fb f18" id="p_total">0.00</span>
				</div>
				</form>
				<div class="cb"></div>
			</div>
		</div>
	</div>



	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<%@include file="../../subPages/footer.jsp"%>
	<script type="text/javascript" src="js/product.js"></script>
	<script type="text/javascript" src="js/cart.js"></script>
</body>
</html>
